Carbon


Button

Header: Events.h Carbon status: Supported

Determines whether the user pressed the mouse button.

Boolean Button ();
DISCUSSION

The Button function looks in the Operating System event queue for a mouse-down event. If it finds one, the Button function returns true; otherwise, it returns false. To determine whether the mouse button is still down after a mouse-down event, use the StillDown function.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)